<html>
<head><meta charset="utf-8"><title>rust-analyzer not indexing dependencies? · t-compiler/rust-analyzer · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/index.html">t-compiler/rust-analyzer</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/rust-analyzer.20not.20indexing.20dependencies.3F.html">rust-analyzer not indexing dependencies?</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="196979252"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/rust-analyzer%20not%20indexing%20dependencies%3F/near/196979252" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Anirudh Chhangani <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/rust-analyzer.20not.20indexing.20dependencies.3F.html#196979252">(May 09 2020 at 07:55)</a>:</h4>
<p><a href="/user_uploads/4715/-B7blQh1e-G5IEnkuOdh4kWe/Screen_Recording_2020-05-09_at_12.05.22_PM.mov" title="Screen_Recording_2020-05-09_at_12.05.22_PM.mov">screencastmov</a></p>



<a name="196979307"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/rust-analyzer%20not%20indexing%20dependencies%3F/near/196979307" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Anirudh Chhangani <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/rust-analyzer.20not.20indexing.20dependencies.3F.html#196979307">(May 09 2020 at 07:57)</a>:</h4>
<p>I am trying to setup sublime text 3 with rust-analyzer and LSP package on windows with rust msvc toolchain, for most part the project is indexed properly but I cannot jump to dependencies, is this expected behaviour?</p>



<a name="196979663"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/rust-analyzer%20not%20indexing%20dependencies%3F/near/196979663" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Laurențiu <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/rust-analyzer.20not.20indexing.20dependencies.3F.html#196979663">(May 09 2020 at 08:04)</a>:</h4>
<p>Does that also happen without <code>#[derive]</code>?</p>



<a name="196979675"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/rust-analyzer%20not%20indexing%20dependencies%3F/near/196979675" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Laurențiu <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/rust-analyzer.20not.20indexing.20dependencies.3F.html#196979675">(May 09 2020 at 08:05)</a>:</h4>
<p><code>diesel</code> is kinda of finicky anyway, maybe you can try with types or functions from a different crate</p>



<a name="196981169"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/rust-analyzer%20not%20indexing%20dependencies%3F/near/196981169" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Anirudh Chhangani <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/rust-analyzer.20not.20indexing.20dependencies.3F.html#196981169">(May 09 2020 at 08:47)</a>:</h4>
<p>hmm, strangely works without derive, but then i cannot go deeper than just one jump. I could jump to queryable, but cannot jump to other symbols in that file. I tried</p>
<p><code>fn new_q() {
    let s = Queryable();
}</code></p>



<a name="196981223"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/rust-analyzer%20not%20indexing%20dependencies%3F/near/196981223" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Anirudh Chhangani <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/rust-analyzer.20not.20indexing.20dependencies.3F.html#196981223">(May 09 2020 at 08:48)</a>:</h4>
<p>is this a limitation of rust-analyzer, rls works properly for this use case though.</p>



<a name="196982089"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/rust-analyzer%20not%20indexing%20dependencies%3F/near/196982089" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Laurențiu <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/rust-analyzer.20not.20indexing.20dependencies.3F.html#196982089">(May 09 2020 at 09:17)</a>:</h4>
<p>Do you mean <a href="https://github.com/diesel-rs/diesel/blob/master/diesel/src/deserialize.rs#L144" title="https://github.com/diesel-rs/diesel/blob/master/diesel/src/deserialize.rs#L144">this file</a>? I'm surprised <code>Queryable()</code> works, since that's a trait.</p>



<a name="196982207"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/rust-analyzer%20not%20indexing%20dependencies%3F/near/196982207" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Anirudh Chhangani <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/rust-analyzer.20not.20indexing.20dependencies.3F.html#196982207">(May 09 2020 at 09:20)</a>:</h4>
<p>oh sorry, I guess I confused you, I just used it in this way to see if it jumps to that symbol, of course it can't be used this way</p>



<a name="196982263"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/rust-analyzer%20not%20indexing%20dependencies%3F/near/196982263" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Anirudh Chhangani <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/rust-analyzer.20not.20indexing.20dependencies.3F.html#196982263">(May 09 2020 at 09:22)</a>:</h4>
<p>once I jump to this file I cannot jump further to any other symbol, for ex , in that file I cannot jump to symbol Backend.</p>



<a name="196982554"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/rust-analyzer%20not%20indexing%20dependencies%3F/near/196982554" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Anirudh Chhangani <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/rust-analyzer.20not.20indexing.20dependencies.3F.html#196982554">(May 09 2020 at 09:33)</a>:</h4>
<p>update: I tried with rls it jumps even with derive.</p>



<a name="196984376"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/rust-analyzer%20not%20indexing%20dependencies%3F/near/196984376" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Laurențiu <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/rust-analyzer.20not.20indexing.20dependencies.3F.html#196984376">(May 09 2020 at 10:22)</a>:</h4>
<p>I'm not sure. It works for me in Code and nvim/LanguageClient-neovim</p>



<a name="196989968"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/rust-analyzer%20not%20indexing%20dependencies%3F/near/196989968" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Anirudh Chhangani <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/rust-analyzer.20not.20indexing.20dependencies.3F.html#196989968">(May 09 2020 at 12:42)</a>:</h4>
<p>bummer, not sure what I am missing..</p>



<a name="196990141"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/rust-analyzer%20not%20indexing%20dependencies%3F/near/196990141" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Laurențiu <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/rust-analyzer.20not.20indexing.20dependencies.3F.html#196990141">(May 09 2020 at 12:47)</a>:</h4>
<p>Do other crates work for you?</p>



<a name="196990404"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/rust-analyzer%20not%20indexing%20dependencies%3F/near/196990404" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Anirudh Chhangani <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/rust-analyzer.20not.20indexing.20dependencies.3F.html#196990404">(May 09 2020 at 12:53)</a>:</h4>
<p>unfortunately all crates are showing same behaviour, tried on mac/linux no change.</p>



<a name="196992432"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/rust-analyzer%20not%20indexing%20dependencies%3F/near/196992432" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Laurențiu <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/rust-analyzer.20not.20indexing.20dependencies.3F.html#196992432">(May 09 2020 at 13:47)</a>:</h4>
<p>Does it also happen in a new project?</p>



<a name="196992586"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/rust-analyzer%20not%20indexing%20dependencies%3F/near/196992586" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Anirudh Chhangani <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/rust-analyzer.20not.20indexing.20dependencies.3F.html#196992586">(May 09 2020 at 13:50)</a>:</h4>
<p>yes this is a new project I created</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>